<html>
    <head>
        <base href="<?php echo base_url() ?>"/>
        <title><?php echo $judul; ?> | Domba Garut Online</title>
        <link rel="stylesheet" href="css/style.css"  type="text/css" />
        <link rel="stylesheet" href="css/smoothness/jquery-ui-1.8.6.custom.css" />
        <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script>
        <script type="text/javascript" src="js/stepcarousel.js"></script>
        <script type="text/javascript" src="js/carousel.js"></script>
        <script type="text/javascript">
			// button form login
			$(function(){
				$("#dialog").dialog({
					autoOpen: false,
					resizable: false,
					draggable: false,
					modal: true
				});
				$(".create-user").click(function() {
					$("#dialog").dialog('open');
				});
			});
		</script>
    </head>
    
    <body>
		<div id="layout">

            <div class="header">
                <?php $this->load->view('header') ?>
            </div>

            <div class="konten">
			
                <div class="konten_atas">

                    <div id="root_slider">
						<div class="contenthol">
						
                            <?php foreach ($artikel_terbaru as $artikel) : ?>
                            <!-- Start of Slide -->
                            <div class="con">
                                <div class="inner">

                                    <div class="judul_slider"><?php echo $artikel['judul_artikel'] ?></div>
                                    <div class="deskripsi_slider"><p><?php echo $artikel['isi_artikel'] ?></p></div>
                                    <div class="gambar_slider">
                                        <?php echo img(array('src' => "foto_artikel/{$artikel['gambar_artikel']}", 'width' => '250', 'height' => '180', 'border' => '0')) ?>
                                    </div>

                                </div>
                            </div>
                            <!-- End of Slide -->
                            <?php endforeach; ?>
						
                        </div>
                    </div>

                    <div class="clear"></div>

                </div>

				<div class="konten_kiri">

                    <?php $this->load->view('konten_kiri') ?>

                    <div class="clear"></div>

				</div>
				
				<div class="konten_kanan">

                    <b class="xtop2"><b class="xb12"></b><b class="xb22"></b><b class="xb32"></b><b class="xb42"></b></b>

                    <div class="box_utama">

                            <div class="box_welcome">

                                <img class="icon_judul" src="images/icon_judul.png" alt="" title="" />
                                <div class="judul_home"><b><?php echo $judul_konten ?></b></div>
                                <div class="isi_pembukaan">
                                    <p>Selamat datang di website Domba Garut Online. disini Anda dapat melihat beberapa produk yang kami tawarkan, serta dapat memesannya langsung secara online.</p>
                                </div>
                                
                            </div>
					
                            <div class="box_produk_terbaru">

                                <img class="icon_judul" src="images/icon_judul.png" alt="" title="" />
                                <div class="produk_terbaru"><b>4 Produk terbaru</b></div>
                                <table class="table_produk_home">
                                    <tr>
                                        <?php $i = 0; foreach ($produk_terbaru as $produk) : ?>
                                        <td align="center" width="100%">
                                            <h2><b><?php echo $produk['nama_produk']?></b></h2>
                                            <?php echo anchor("produk", img(array('src' => "foto_produk/{$produk['gambar_produk']}", 'width' => '120', 'height' => '120', 'border' => '0'))) ?>
                                            <p>Rp <?php echo number_format($produk['harga_produk'], 0, ',', '.') ?></p>
                                            <p><?php echo anchor("keranjang_belanja/tambah/{$produk['id_produk']}", img(array('src' => "images/addcart.png", 'border' => '0', 'width' => '80px'))) ?></p>
                                        </td>
                                        <?php endforeach;?>
                                    </tr>
                                </table>

                            </div>
                        
                            <div class="clear"></div>
                    </div>

                    <b class="xbottom2"><b class="xb42"></b><b class="xb32"></b><b class="xb22"></b><b class="xb12"></b></b>

                </div>
                
                <div class="clear"></div>
				
            </div>

            <div class="footer">
                <?php $this->load->view('footer') ?>
            </div>
			
        </div>
    </body>
</html>
